package com.zmx.common.common.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * @Description: 用于返回dto说明结构bean
 * @ClassName: ResponseDto
 * @Author zhaomxr
 * @Date 2021-08-11 09:42
 */
@Data
@AllArgsConstructor
@ToString
public class ResponseDto implements Serializable {

    /**
     * 请求url
     */
    private String url;

    /**
     * 请求方式类型 GET/POST/PUT/DELETE等
     */
    private String type;

    /**
     * 接口说明
     */
    private String explain;

    /**
     * 完整类路径
     */
    private String resultBean;

    /**
     * bean说明
     */
    private String beanDesc;

    /**
     * 实际数据内容
     */
    private Object fieldDesc;

    public ResponseDto() {
    }

    public ResponseDto(String beanDesc, String resultBean, Object fieldDesc) {
        this.beanDesc = beanDesc;
        this.resultBean = resultBean;
        this.fieldDesc = fieldDesc;
    }
}
